<form action="<?php echo $this->site['base_url']?>contact/sm" method="post">
<table class="content" align="center" cellspacing="0" cellpadding="0" border="0">
  <tr>
    <td class="content_title_top"><div><?php echo Kohana::lang('contact_lang.tt_page') ?></div></td>
  </tr>
  <tr>
    <td class="content_middle">
    <table align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td valign="top" width="50%">
      	<table align="center" cellpadding="5" cellspacing="0">
      	<tr>
      	  <td colspan="2"><strong><?php echo $this->site['site_name']?></strong></td>
    	</tr>
      	<tr>
      	  <td width="21%"><?php echo Kohana::lang('admin_setting_lang.lbl_email')?>:</td>
      	  <td><?php echo $this->site['site_email']?></td>
    	  </tr>
      	<tr>
      	  <td><?php echo Kohana::lang('admin_setting_lang.lbl_address')?>:</td>
      	  <td><?php echo $this->site['site_address']?></td>
    	</tr>
      	<tr>
      	  <td></td>
      	  <td><?php echo $this->site['site_city']?>, <?php echo $this->site['site_state']?> <?php echo $this->site['site_zipcode']?></td>
    	</tr>
      	<tr>
      	  <td><?php echo Kohana::lang('admin_setting_lang.lbl_phone')?>:</td>
      	  <td><?php echo $this->site['site_phone']?></td>
        </tr>
      	<tr>
      	  <td><?php echo Kohana::lang('admin_setting_lang.lbl_fax')?>:</td>
      	  <td><?php echo $this->site['site_fax']?></td>
    	  </tr>
      	</table>
      </td>
      <td width="2%" style="border-left:1px solid">&nbsp;</td>
      <td valign="top">
      	<table align="center" cellpadding="5" cellspacing="0">
        <tr>
          <td colspan="2" align="center"><p class="blue_alert">
              <?php if(isset($msg_success)) echo $msg_success ?>
            </p>
            <p class="red_alert">
              <?php if(isset($msg_error)) echo $msg_error ?>
            </p></td>
        </tr>
        <tr>
          <td colspan="2" align="center"><font class="text_error">
            <?php if(isset($error_msg)) echo $error_msg ?>
            </font></td>
        </tr>
        <tr>
          <td width="20%" align="right"><?php echo Kohana::lang('contact_lang.lbl_name') ?>:</td>
          <td><input type="text" name="txt_name" id="txt_name" size="35" value="<?php if(isset($mr['contact_name'])) echo $mr['contact_name'] ?>" /></td>
        </tr>
        <tr>
          <td align="right"><?php echo Kohana::lang('contact_lang.lbl_email') ?>:</td>
          <td><input type="text" name="txt_email" id="txt_email" size="35" value="<?php if(isset($mr['contact_email'])) echo $mr['contact_email'] ?>" /></td>
        </tr>
        <tr>
          <td align="right"><?php echo Kohana::lang('contact_lang.lbl_phone') ?>:</td>
          <td><input type="text" name="txt_phone" id="txt_phone" size="35" value="<?php if(isset($mr['contact_phone'])) echo $mr['contact_phone'] ?>" /></td>
        </tr>
        <tr>
          <td align="right"><?php echo Kohana::lang('contact_lang.lbl_subject') ?>:</td>
          <td><input type="text" name="txt_subject" id="txt_subject" size="35" value="<?php if(isset($mr['contact_subject'])) echo $mr['contact_subject'] ?>" /></td>
        </tr>
        <tr>
          <td align="right" valign="top"><?php echo Kohana::lang('contact_lang.lbl_content') ?>:</td>
          <td><textarea id="txt_content" name="txt_content" cols="37" rows="5"><?php if(isset($mr['contact_content'])) echo $mr['contact_content'] ?></textarea></td>
        </tr>
        <!--<tr>
          <td align="right"><?php echo Kohana::lang('contact_lang.lbl_security') ?>: <font color="#FF0000">*</font></td>
          <td><?php if(isset($mr['str_random'])) echo $mr['str_random']?></td>
        </tr>
        <tr>
          <td align="right"></td>
          <td><input id="txt_random" name="txt_random" type="text" size="10" maxlength="20" /></td>
        </tr>-->
        <tr>
          <td align="right"><?php echo Kohana::lang('contact_lang.lbl_send_to') ?>:</td>
          <td>
          	<select name="sel_send" id="sel_send">
            <option value="admin"><?php echo Kohana::lang('admin_setting_lang.lbl_administrator') ?> </option>
            <option value="sale"><?php echo Kohana::lang('admin_setting_lang.lbl_sale') ?> </option>
            </select>
          </td>
        </tr>
        <tr>
          <td colspan="2" align="center"><input type="submit" name="submit" class="button" value="<?php echo Kohana::lang('contact_lang.btn_send') ?>"/>
            <input id="reset" name="reset" type="reset" class="button" value="<?php echo Kohana::lang('contact_lang.btn_reset') ?>"/></td>
        </tr>
      	</table>
      </td>
      </tr>
      </table>
      </td>
  </tr>
  <tr>
    <td class="content_bottom">&nbsp;</td>
  </tr>
</table>
</form>
